/*
 * 
 */

/**
 * @autor Fabricio Oliveira
 * @autor Leonardo Machado
 * @autor Luciana Briggs
 */

#ifndef MULTIHOP_H
#define MULTIHOP_H

enum {
  
  NREADINGS = 5,
  DEFAULT_INTERVAL_LIGHTNESS = 1000,
  DEFAULT_INTERVAL_TEMPERATURE = 2*1000,
  DEFAULT_SLEEP = 120000,
  ID_LIGHTNESS = 0,
  ID_TEMPERATURE = 1,
  AM_CI = 0x93,
  POWER_MAXIMO = 0,
  POWER_MINIMO = 15,
  LIMITE_PERDA_ACK = 2,
  LIMITE_PERDA_ACK_EXTREMO = 40,
  LIMITE_ACK_ACEITOS = 10, 
  LPL_INTERVAL = 500
};

typedef nx_struct pacoteci {
  nx_uint16_t version; /* Version of the interval. */
  nx_uint16_t power; /* Samping period. */
  nx_uint16_t id; /* Mote id of sending mote. */
  nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */
  nx_uint16_t readings[NREADINGS];
  nx_uint16_t id_readings;/*Aumentar o tamanho de message_t*/
} pacoteci_t;

#endif
